<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class topic extends Model {
	public function topicArticle() {
		return $this->hasMany('App\topicArticle', 'topic_id');
	}

	public function user() {
		return $this->belongsTo('App\user', 'user_id');
	}
}
